package team.pwy.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import team.pwy.consts.RbmConsts;
import team.pwy.mapper.PhoneMapper;
import team.pwy.pojo.entity.Phone;

import java.util.List;
@Service
@Transactional
public class PhoneServiceImpl implements PhoneService {

    @Autowired
    private PhoneMapper phoneMapper;
    @Override
    public List<Phone> findAllPhone() {
        return phoneMapper.findAllPhone();
    }

}
